﻿using System;
using Emotive.Otf.OtxEditor;
using Emotive.Otf.OtxEditor.Core;
using Emotive.Otf.OtxEditor.Core.WinForms;
using Emotive.Otf.OtxEditor.Gui;
using Emotive.Otf.OtxEditor.GUIEditor;
using Emotive.Otf.OtxEditor.Presentation;
using System.Windows.Forms;
using System.IO;

namespace ConsoleApplication2
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            ParserService.InitializeParserService();
            string fileName = Path.Combine(Application.StartupPath, "Program.cs");//@"C:\Users\Emotive\Documents\SharpDevelop Projects\aa\aa\Program.cs";
            ParserService.GetParser(fileName);
            WpfMenuService.LinkCommandCreator = MenuCommand.LinkCommandCreator;
            PropertyService.InitializeServiceForUnitTests();
            AvalonEditDisplayBinding aa = new AvalonEditDisplayBinding();
            OpenedFile file = FileService.GetOrCreateOpenedFile(FileName.Create(fileName));
            IViewContent newContent = aa.CreateContentForFile(file);
            UserControl1 uc = new UserControl1();
            uc.Content = newContent.Control;
            Form1 f = new Form1();
            f.addControl(uc);
        }
    }
}
